﻿
function action(mode, type, selection) {
	if (cm.getMapId() / 100 == 9211607) {
		if (cm.getMap().getAllMonster().size() == 0) {
			if (!cm.canHold(4001534, 1)) {
				cm.sendOk("请整理你的背包空间!.");
				cm.dispose();
				return;
			}
		//	cm.gainExp(99999999);
			//cm.gainItem(4001534, 1);
			if (cm.getEventCount("Prison") < 10) {
				cm.setEventCount("Prison");
				cm.givePartyEnergy(1200);
				cm.givePartyPoints(1200);
				cm.gainItem(2614046, 2);
				cm.gainItem(5062002, 3);
				cm.gainItem(5062000, 3);
				cm.gainItem(5062009, 3);				
				cm.gainItem(2431347, 2);
				cm.gainItem(2431114, 2);
				cm.gainItem(2436249, 2);				
				cm.gainNX(2, 1200);
				cm.worldSpouseMessage(0x15, "『深狱高墙』 : " + cm.getChar().getName() + " 带领的队伍成功完成了逃脱任务真的太牛啦！让我们庆贺他们的成功吧！。");
			}
			cm.removeAll(4001528);
			cm.warp(921160000, 0);
	        cm.sendOk("您获得的组队任务奖品：\r\n#v2614046#x2 #v5062000#x3 #v5062002#x3 #v5062009#x3 #v2431347#x2 #v2431114#x2 #v2436249#x2 \r\n抵用券x1200 PPMS活跃x1200 PPMS微积分x1200");						
			cm.dispose();
		} else {
			cm.sendOk("请快点击败看守阿尼!");
			cm.safeDispose();
		}
	}
}
